package com.ruoyi.project.erp.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 项目成员对象 project_user
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
@Data
public class ProjectUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String projectId;


    @Excel(name = "是否置顶")
    private Integer top;
    /** 钉钉userId */
    @Excel(name = "钉钉userId")
    private String ddUserId;

    /** 角色（成员，负责人） */
    @Excel(name = "角色", readConverterExp = "成员，负责人")
    private String role;

    /** 职级 */
    @Excel(name = "职级")
    private String jobGrade;

    /** 状态0无效，1有效 */
    @Excel(name = "状态0无效，1有效")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProjectId(String projectId) 
    {
        this.projectId = projectId;
    }

    public String getProjectId() 
    {
        return projectId;
    }

    public void setDdUserId(String ddUserId) 
    {
        this.ddUserId = ddUserId;
    }

    public String getDdUserId() 
    {
        return ddUserId;
    }

    public void setRole(String role) 
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("ddUserId", getDdUserId())
            .append("role", getRole())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
